export function pagingData(originData, totalCount, currentPage, currentSize) {
    var count = currentPage * currentSize;
    var currentData = [];
    if (totalCount >= count) {
        currentData = originData.slice((currentPage - 1) * currentSize, count);
    } else if (totalCount < count) {
        currentData = originData.slice((currentPage - 1) * currentSize, totalCount);
    }
    return currentData;
}
